package com.szy.redstonemcu;

import ibxm.Player;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ActionResult;
import net.minecraft.util.EnumActionResult;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;

public class Flash extends Item {
    public Flash(){
        this.setMaxStackSize(1);
        this.setCreativeTab(RedstoneMCU.RM_CREATIVE_TAB);
        this.setUnlocalizedName("redstonemcu.flash");
    }

//    @Override
//    public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn) {
////        ItemStack stack= playerIn.getHeldItem(handIn);
////        NBTTagCompound tag=new NBTTagCompound();
////
////        tag.setString("size","256K");
////        stack.setTagCompound(tag);
//
//        return super.onItemRightClick(worldIn, playerIn, handIn);
//    }
//
//    @Override
//    public boolean onDroppedByPlayer(ItemStack item, EntityPlayer player) {
//        NBTTagCompound tag=item.getTagCompound();
//        String size= "";
//        if (tag != null) {
//            size = tag.getString("size");
//        }
//        RedstoneMCU.logger.info("size="+size);
//        return super.onDroppedByPlayer(item, player);
//    }
}
